Eli PHP Tutorial
PHP Programming Part 1: Introduction to PHP Programming
Eli describe PHP as a programming language that makes a website useful; which allow users to interrelate with data and dynamically write webpages.
Scripted languages upload text files unto a server which can be access by the user, the software will process given information and deliver it to the user, while, compiled languages used software that execute the output of the file which cannot be edited.
At the client side the user gain access to the server, meanwhile, all of the information were sent back to the users PC by the server that kept the informations. The server side process data from the web server and output HTML to the users.
The example will be craiglists.com; because, it does not contain too many graphical elements that make a webpage look pretty and it is intensively useful.
Eli emphasize that text file always in use which the source file can always be read.
Notepad++ is a text editor and source code editor for use with Microsoft Windows; because it contain additional code writing features unlike regular notepad.
I will need a notepad and a server that has PHP program installed.
Eli describe syntax as how someone spell the commands they using.
PHP Programming Part 2 : PHP Syntax and Errors
Absolutely, yes.
Start PHP with . Between the tags, create a command such as print or echo and follow it with quotation marks around what you want your output comes out, and end it with a semicolon command.
The web browser print out the error in the file telling or indicating either before or after which line containing the error.
The difference between printing text and printing HTML is that tags are reads by web browser and html codes, and text is prints out with PHP.
What will happens is that it does matter at the users level and at the sever level is not really that matter.
PHP Programming Part 3: Comments and INCLUDE in PHP Programming
//, # for single line comment and /* */ for multi line comment
PHP include function have the ability to copy and paste text file from one file location to another. It is useful because it help to save time, transfer information without rewriting.
PHP Programming Part 4: Variables in Print in PHP Programming
The three types of PHP variables Eli discusses are arrays, strings and integers.
The variable start with the dollar sign ($) followed by variable name which must start with a letter or the underscore character.
The 'br' tag in HTML, break will be seen in HTML web browser and '\n' in PHP the break will be seen in the text source code.
PHP Programming Part 5: HTML Forms and PHP Programming
It means that HTML creates forms and its objects; this form will go through PHP to get it work perfectly. PHP writes or grabs information to/from a file and make it useful.
The HTML textbox enable users to input text string up to the size attribute, an option box let users select from a predefined list. CTRL key can be utilize by the users for multiple selection choices if correctly setup. The radio button only allow users to select a choice from predefined list. The label attribute make selection more user friendly activating the selection when text clicked.
PHP Programming Part 6: Printing to Files with PHP
This particular function writes information which was given to a file.
It is comma separated value text file format, a spreadsheet format. To open any spreadsheet program and saved it as an excel file to be email.